const
	Base = require('./base/base'),
	cr = require('text-cryptography');

/**
 * @extends base
 */
module.exports = class extends Base {
	constructor(){
		super();
		this.cm = new cr.Baconian();
	}
	encodeAction(param){
		return this.cm.encrypt(param.text);
	}
	decodeAction(param){
		return this.cm.decrypt(param.text);
	}
}